﻿/*****************************************
 * 
 *  copyright (c) by ylshen
 * 
 *  author : ylshen (syl.lucky@gmail.com)
 * 
 **************************************** */
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using JYStockAnalyser.Model;
using JYStockAnalyser.DA;

namespace JYStockAnalyser.Face
{
    /// <summary>
    /// 数据精华操作外观
    /// </summary>
    public class EssentialDataFace : System.MarshalByRefObject
    {
        /// <summary>
        /// 获取最新的主力五日增仓数据(按增加金额排序)
        /// </summary>
        /// <returns></returns>
        public List<StockMarketInfo> GetLastFiveAddingOrderByAdding()
        {
            EssentialDataMapper mapper = new EssentialDataMapper();
            return mapper.GetLastFiveAddingOrderByAdding();
        }

        /// <summary>
        /// 获取最新的主力五日增仓数据(按股票代码排序)
        /// </summary>
        /// <returns></returns>
        public List<StockMarketInfo> GetLastFiveAddingOrderByStockNO()
        {
            EssentialDataMapper mapper = new EssentialDataMapper();
            return mapper.GetLastFiveAddingOrderByStockNO();
        }

        /// <summary>
        /// 获取最新的主力五日减仓数据(按增加金额排序)
        /// </summary>
        /// <returns></returns>
        public List<StockMarketInfo> GetLastFiveSubtractingOrderBySubtracting()
        {
            EssentialDataMapper mapper = new EssentialDataMapper();
            return mapper.GetLastFiveSubtractingOrderBySubtracting();
        }

        /// <summary>
        /// 获取最新的主力五日减仓数据(按股票代码排序)
        /// </summary>
        /// <returns></returns>
        public List<StockMarketInfo> GetLastFiveSubtractingOrderByStockNO()
        {
            EssentialDataMapper mapper = new EssentialDataMapper();
            return mapper.GetLastFiveSubtractingOrderByStockNO();
        }
    }
}
